package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 指出调用哪个远程服务
 *
 * @author ly
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 远程查询是否有库存接口
     *
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/wareSku/hasStock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
